package chapter13;

public class Ellipse extends GeometricObject {
    private  double shortSemiAxis;
    private  double LongSemiAxis;

    public Ellipse(double shortSemiAxis,double longSemiAxis){
        this.shortSemiAxis = shortSemiAxis;
        this.LongSemiAxis  = longSemiAxis;

    }
    public double getArea(){
        return  3.14*shortSemiAxis*LongSemiAxis;

    }
    public double getPerimeter(){
        return 2*3.14*LongSemiAxis+4*(shortSemiAxis-LongSemiAxis);
    }
}
